<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Suggest字典维护</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<link href="/etc/css/style_app.css" rel="stylesheet" type="text/css">
<link href="/etc/css/style_sys.css" type="text/css" rel="stylesheet">
<link href="/etc/css/opendiv-normal.css" rel="stylesheet" type="text/css">
<link href="/etc/js/dtree/dtree.css" type="text/css" rel="stylesheet">
<script src="/etc/js/jquery-1.8.2.min.js" ></script>
<script src="/etc/js/xiu-tree.js?_v" ></script>
<style type="text/css">
ul, ol { list-style-type:none; }
.tableInput1 th{color:#000;font-weight:bold;line-height:1.8em}
.tableInput1 td{color:#333}
.tableInput1 tr:hover{background-color:#fff}
.tc{text-align:center}
.mr5{margin-right:5px;}
.mr10{margin-right:10px;}
.fl{float:left}
.fuzDisable{color:#aaa}
</style>
</head>
<body>
<!-- 标题条 -->
<div class="pagetitle">Suggest字典维护列表</div>

<!-- 按钮条 -->
<table width="98%" align="center" class="topbuttonbar" height="30" border="0" cellpadding="0" cellspacing="0">
	<tr> 
	    <td width="90%" valign="middle"><a href="/lexicon/lexicon-edit.do">新增字典词</a></td>
	    <td width="10%" align="center"></td>
	</tr>
</table>

<div>
<form action="/lexicon/lexicon-list.do" autocomplete="off" method="GET">
<ul>
	<li class="fl mr10">关键字：<input name="wordName" type="text" value="${(params.wordName)!''}"/></li>
	<li class="fl mr10"><label for="J_fuzzyShowFlag"><input id="J_fuzzyShowFlag" ${((params.fuzzyShowFlag)?? && params.fuzzyShowFlag)?string('checked="checked"','')} value="true" type="checkbox" name="fuzzyShowFlag" />是否前缀查询</label>
	</li>
	<script>
	(function(){
	$('#J_fuzzyShowFlag').click(function(){
		var _check = $(this).attr('checked');
		if(_check){
			$('#J_fuzzyFileds_box').removeClass('fuzDisable').find('input[type="checkbox"]').removeAttr('disabled');
		}else{
			$('#J_fuzzyFileds_box').addClass('fuzDisable').find('input[type="checkbox"]').attr('disabled','disabled');
		}
	})
	})()
	</script>
	<li id="J_fuzzyFileds_box" class="fl mr10 ${((params.fuzzyShowFlag)?? && params.fuzzyShowFlag)?string('','fuzDisable')}">
	<label for="J_WORD_NAME" class="mr5"><input id="J_WORD_NAME" ${((params.fuzzyShowFlag)?? && params.fuzzyShowFlag)?string('','disabled="disabled"')} ${(params.fuzzyFields?? && !params.fuzzyFields?seq_contains('WORD_NAME'))?string('','checked="checked"')} type="checkbox" value="WORD_NAME" name="fuzzyFields"/>名称</label>
	<label for="J_PINYIN" class="mr5"><input id="J_PINYIN" ${((params.fuzzyShowFlag)?? && params.fuzzyShowFlag)?string('','disabled="disabled"')} ${(params.fuzzyFields?? && !params.fuzzyFields?seq_contains('PINYIN'))?string('','checked="checked"')} type="checkbox" value="PINYIN" name="fuzzyFields"/>拼音</label>
	<label for="J_S_PINYIN" class="mr5"><input id="J_S_PINYIN" ${((params.fuzzyShowFlag)?? && params.fuzzyShowFlag)?string('','disabled="disabled"')} ${(params.fuzzyFields?? && !params.fuzzyFields?seq_contains('S_PINYIN'))?string('','checked="checked"')} type="checkbox" value="S_PINYIN" name="fuzzyFields"/>拼音首字母</label></li>
	<li class="fl mr10">
		类型：<select name="wordType">
		<option >全部</option>
			<#list lexiconTypeEnums as type>
<#if type.type != 4>
<option 
<#if (params.wordType)?? && params.wordType == type.type>selected="selected"</#if>
 value="${type.type}">${type.display}</option>
</#if>
</#list>
		<select>
	</li>
	<li class="fl mr10">
		状态：<select name="status">
		<option >全部</option>
			<#list lexiconStatusEnums as status>
<option 
<#if (params.statusEnum)?? && params.statusEnum == status>selected="selected"</#if>
 value="${status.ordinal()}">${status.display}</option>
</#list>
		<select>
	</li>
</ul>
<button type="submit">筛选</button>
</form>
</div>
<table class="tableInput1" style="border-collapse: collapse; font-size: 12px;" align="center" border="1" bordercolor="#C7D3E2" cellpadding="3" cellspacing="0" width="98%">
<tr>
	<th>序号</th>
	<th>单词</th>
	<th>拼音</th>
	<th>拼音首字母</th>
	<th>类型</th>
	<th>创建时间</th>
	<th>修改时间</th>
	<th>状态</th>
	<th>操作</th>
</tr>
<#if (lexiconList)?? && lexiconList?size gt 0>
<#list lexiconList as lexicon>
<tr>
	<td>
	${lexicon.wordId}
	</td>
	<td>
	${lexicon.wordName?html}
	</td>
	<td>
	${(lexicon.pinYin)!'-'}
	</td>
	<td>
	${(lexicon.sPinYin)!'-'}
	</td>
	<td>
	${(lexicon.typeEnum.display)!'-'}
	</td>
	<td>${lexicon.gmtCreate?string('yyyy-MM-dd HH:mm')}</td>
	<td>
	${lexicon.gmtModify?string('yyyy-MM-dd HH:mm')}
	</td>
	<td>
	${(lexicon.statusEnum.display)!'-'}
	</td>
	<td class="tc">
	<#if ((lexicon.statusEnum)?? && (lexicon.statusEnum.name() == 'UNCHECKED'))>
	<a href="/lexicon/lexicon-edit.do?wordId=${lexicon.wordId}">修改</a> | 	<a href="/lexicon/lexicon-delete.do?wordId=${lexicon.wordId}">删除</a>
	<#elseif ((lexicon.statusEnum)?? && (lexicon.statusEnum.name() == 'DELETE'))> 
	<a href="/lexicon/lexicon-recover.do?wordId=${lexicon.wordId}">恢复</a>
	<#else>
	-
	</#if>
	</td>
</tr>
</#list>
<#else>
<tr>
	<td colspan="9" style="color:red;text-align:center"><span>很抱歉，未找到字典单词！</span></td>
</tr>
</#if>
</table>
<@pager.p page=page.pageNo totalpage=page.pageCount totalrecord=page.recordCount/>
</body>
</html>